<template>
<!-- 右上角搜索按钮 -->
  <div class="search-icon" @click="goToSearchAllView"></div>
</template>

<script>
export default {
  methods: {
    goToSearchAllView() {
      this.$router.push({
        name: "searchAll",
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.search-icon {
  display: block;
  width: 30px;
  height: 30px;
  background-size: 30px;
  background-image: url("../assets/image/discover-img/search.png");
}
</style>